package com.ssm.car.dao.model;



import com.jee.ssm.common.core.base.BaseModel;

import java.util.Date;

/**
 * 停车位管理
 * 2017年5月24日 闫增宝
 * 表名 d_parkinglot
 * @author GaoXiang
 * @version 1.0
 * Create time 2017/05/23
 */
public class Parkinglot extends BaseModel {
    /**
     * 主键
     * 表字段 : d_parkinglot.id
     * Create time 2017/05/23
     */
    private String id;

    /**
     * 所属停车场
     * 表字段 : d_parkinglot.parking_id
     * Create time 2017/05/23
     */
    private String parkingId;

    /**
     * 序号
     * 表字段 : d_parkinglot.number
     * Create time 2017/05/23
     */
    private Integer number;

    /**
     * 绑定地锁号
     * 表字段 : d_parkinglot.lock_id
     * Create time 2017/05/23
     */
    private String lockId;

    /**
     * 车位状态：0=预定；1=未预定；2=使用中；3=未使用；
     * 表字段 : d_parkinglot.switch_status
     * Create time 2017/05/23
     */
    private String switchStatus;

    /**
     * 创建时间
     * 表字段 : d_parkinglot.set_time
     * Create time 2017/05/23
     */
    private Date setTime;

    /**
     * 备注
     * 表字段 : d_parkinglot.intro
     * Create time 2017/05/23
     */
    private String intro;
    /**
     * 分区id
     * 表字段 : zone
     * Create time 2017/05/23
     */
    private String zone;
    /**
     * 位置x坐标
     * 表字段 : d_zonex
     * Create time 2017/05/23
     */
    private String zonex;
    /**
     * 位置y坐标
     * 表字段 : d_zoney
     * Create time 2017/05/23
     */
    private String zoney;
    /**
     * 表字段：d_parkinglot.switch_lock
     */
    private String switchLock;

  /*  private Lock lock;*/

    private Parking parking;

    private String parkingImg;

    private String parkuseId;

    private String zoneName;
    private String floor;
    private String url;

    /**
     * 带三个参数的构造方法
     * @param parkingId
     * @param switchStatus
     * @param switchLock
     */
    public Parkinglot(String parkingId, String switchStatus, String switchLock) {
        this.parkingId = parkingId;
        this.switchStatus = switchStatus;
        this.switchLock = switchLock;
    }

    public Parkinglot(String parkingId, String switchStatus) {
        this.parkingId = parkingId;
        this.switchStatus = switchStatus;
    }

    /**
     * 构造方法
     */
    public Parkinglot(String id, String parkingId, Integer number, String lockId, String switchStatus, Date setTime, String intro, String zone, String zonex, String zoney) {
        this.id = id;
        this.parkingId = parkingId;
        this.number = number;
        this.lockId = lockId;
        this.switchStatus = switchStatus;
        this.setTime = setTime;
        this.intro = intro;
        this.zone = zone;
        this.zonex = zonex;
        this.zoney = zoney;
    }

    /**
     * 构造方法
     */
    public Parkinglot() {
        super();
    }

    /**
     * 主键
     * @return id 主键
     */
    public String getId() {
        return id;
    }

    /**
     * 主键
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 所属停车场
     * @return parking_id 所属停车场
     */
    public String getParkingId() {
        return parkingId;
    }

    /**
     * 所属停车场
     * @param parkingId 所属停车场
     */
    public void setParkingId(String parkingId) {
        this.parkingId = parkingId;
    }

    /**
     * 序号
     * @return number 序号
     */
    public Integer getNumber() {
        return number;
    }

    /**
     * 序号
     * @param number 序号
     */
    public void setNumber(Integer number) {
        this.number = number;
    }

    /**
     * 绑定地锁号
     * @return lock_id 绑定地锁号
     */
    public String getLockId() {
        return lockId;
    }

    /**
     * 绑定地锁号
     * @param lockId 绑定地锁号
     */
    public void setLockId(String lockId) {
        this.lockId = lockId;
    }

    /**
     * 车位状态：0=预定；1=未预定；2=使用中；3=未使用；
     * @return switch_status 车位状态：0=预定；1=未预定；2=使用中；3=未使用；
     */
    public String getSwitchStatus() {
        return switchStatus;
    }

    /**
     * 车位状态：0=预定；1=未预定；2=使用中；3=未使用；
     * @param switchStatus 车位状态：0=预定；1=未预定；2=使用中；3=未使用；
     */
    public void setSwitchStatus(String switchStatus) {
        this.switchStatus = switchStatus;
    }

    /**
     * 创建时间
     * @return set_time 创建时间
     */
    public Date getSetTime() {
        return setTime;
    }

    /**
     * 创建时间
     * @param setTime 创建时间
     */
    public void setSetTime(Date setTime) {
        this.setTime = setTime;
    }

    /**
     * 备注
     * @return intro 备注
     */
    public String getIntro() {
        return intro;
    }

    /**
     * 备注
     * @param intro 备注
     */
    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getZone() {
        return zone;
    }

    public void setZone(String zone) {
        this.zone = zone;
    }



    public Parking getParking() {
        return parking;
    }

    public void setParking(Parking parking) {
        this.parking = parking;
    }

    public String getSwitchLock() {
        return switchLock;
    }

    public void setSwitchLock(String switchLock) {
        this.switchLock = switchLock;
    }

    public String getParkingImg() {
        return parkingImg;
    }

    public void setParkingImg(String parkingImg) {
        this.parkingImg = parkingImg;
    }

    public String getZoneName() {
        return zoneName;
    }

    public void setZoneName(String zoneName) {
        this.zoneName = zoneName;
    }

    public String getParkuseId() {
        return parkuseId;
    }

    public void setParkuseId(String parkuseId) {
        this.parkuseId = parkuseId;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getZonex() {
        return zonex;
    }

    public void setZonex(String zonex) {
        this.zonex = zonex;
    }

    public String getZoney() {
        return zoney;
    }

    public void setZoney(String zoney) {
        this.zoney = zoney;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    @Override
    public String toString() {
        return "Parkinglot{" +
                "id='" + id + '\'' +
                ", parkingId='" + parkingId + '\'' +
                ", number=" + number +
                ", lockId='" + lockId + '\'' +
                ", switchStatus='" + switchStatus + '\'' +
                ", setTime=" + setTime +
                ", intro='" + intro + '\'' +
                ", zone='" + zone + '\'' +
                ", zonex='" + zonex + '\'' +
                ", zoney='" + zoney + '\'' +
                ", switchLock='" + switchLock + '\'' +
                ", parking=" + parking +
                ", parkingImg='" + parkingImg + '\'' +
                ", parkuseId='" + parkuseId + '\'' +
                ", zoneName='" + zoneName + '\'' +
                ", floor='" + floor + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}